package com.project.base.common;

public class Constant {
    //商品自动关联excel单元格标题规范-强制要求
    public static final String COMMODITY_AUTO_MATCH_EXCEL_ROLE = "监控编号;采集页网址;监控平台;监控景区;省份;城市;商品ID;商品名称;价格;驴妈妈对应商品ID;支付方式;是否在线";
    public static final String IP_EXCEL_TEMPLATE = "IP;端口号;IP类型;IP位置;是否可用;匿名度;响应时间";
    public static final String COMMODITY_AUTO_MATCH_PLUS_CHARACTER = "+";
    public static final String COMMODITY_AUTO_MATCH_LMM_COMPANY_CODE = "驴妈妈";
    public static final int COMMODITY_AUTO_MATCH_PAGE_SIZE = 20;
    //初始状态
    public static final String DEFAULT_PROCESS_STATE_CODE = "0";
    //数据待抓取
    public static final String SPIDER_PREPARED_STATE_CODE = "1";
    //数据抓取中
    public static final String SPIDER_RUNNING_STATE_CODE = "2";
    //数据抓取失败
    public static final String SPIDER_ERROR_STATE_CODE = "3";
    //数据抓取成功
    public static final String SPIDER_SUCCESS_STATE_CODE = "5";
    //数据转化中
    public static final String DATA_RUNNING_STATE_CODE = "20";
    //数据转化成功
    public static final String DATA_SUCCESS_STATE_CODE = "22";
    //数据转化失败
    public static final String DATA_ERROR_STATE_CODE = "24";
    //CPA处理类类名
    public static final String CPA_CONFIG_MODEL_CONVERT_CLASS_NAME = "MODEL_CONVERT_CLASS_NAME";
    //CPA处理类方法名
    public static final String CPA_CONFIG_MODEL_CONVERT_METHOD_NAME = "MODEL_CONVERT_METHOD_NAME";
    //CPA处理类bean
    public static final String CPA_CONFIG_MODEL_CONVERT_BEAN_NAME = "MODEL_CONVERT_BEAN_NAME";
    //CPA允许商品类型
    public static final String CPA_CONFIG_ENABLE_COMM_TYPE = "COMMODITY_TYPE";
    public static final String CPA_CONFIG_ENABLE_COMM_TYPE_REFUSED = "COMMODITY_TYPE_REFUSED";
    public static final String CPA_CONFIG_ENABLE_COMM_TYPE_SWITCH = "COMMODITY_TYPE_SWITCH";
    //XC_C_CODE
    public static final String XC_C_CODE = "XC_C_CODE";
    //YL_C_CODE
    public static final String EL_C_CODE = "EL_C_CODE";
    //TN_C_CODE
    public static final String TN_C_CODE = "TN_C_CODE";
    //QNR_C_CODE
    public static final String QNR_C_CODE = "QNR_C_CODE";
    //TC_C_CODE
    public static final String TC_C_CODE = "TC_C_CODE";
    //TC_C_CODE
    public static final String LMM_C_CODE = "LMM_C_CODE";
    public static final String MT_C_CODE = "MT_C_CODE";
    public static final String TC_TICKET_GRAB = "TC_Ticket_Grab";
    public static final String TN_TICKET_GRAB = "TN_Ticket_Grab";
    public static final String XC_TICKET_GRAB = "XC_Ticket_Grab";
    public static final String QNR_TICKET_GRAB = "QNR_Ticket_Grab";

    public static final String HB_CONSTANT_FAMILY = "constant";
    public static final String HB_VARIABLE_FAMILY = "variable";
    public static final int HB_MAXVERSION_NUM = 1;
    public static final String DATE_TYPE_FESTIVAL = "FESTIVAL";
    public static final String DATE_TYPE_WEEKEND = "WEEKEND";
    public static final String DATE_TYPE_WORKDAY = "WORKDAY";

    public static final String TICKE_BUS_TYPE = "TICKET";
    public static final String HOTEL_BUS_TYPE = "HOTEL";
    public static final String PRODUCT_LEVEL_TYPE = "PRODUCT_LEVEL_TYPE";
    public static final String COMMODITY_LEVEL_TYPE = "COMMODITY_LEVEL_TYPE";
    //数据过滤配置
    public static final String DATE_COMPARE_NUM = "DATE_COMPARE_NUM";
    public static final String RULE_LEVEL_NORMAL_TYPE = "Normal";
    public static final String RULE_LEVEL_SUPER_TYPE = "Super";
    public static final int RULE_LEVEL_YEAR_VALUE = 4;
    public static final int RULE_LEVEL_QUARTER_VALUE = 3;
    public static final int RULE_LEVEL_MONTH_VALUE = 2;
    public static final int RULE_LEVEL_WEEK_VALUE = 1;
    public static final String RULE_LEVEL_TICKET_TYPE = "TICKET";
    public static final String RULE_LEVEL_HOTEL_TYPE = "HOTEL";
    public static final String RULE_LEVEL_TUAN_TYPE = "TUAN";
    //hbase table name
    //门票产品关联表
    public static final String TICKET_PRODUCT_REL = "competition_ticket_prod_rel";
    //门票商品关联表
    public static final String TICKET_COMMODITY_REL = "competition_ticket_commodity_rel";

    //同城门票产品表
    public static final String TICKET_PRODUCT_TC = "competition_ticket_product_tc";
    //同城门票商品表
    public static final String TICKET_COMMODITY_TC = "competition_ticket_commodity_tc";
    //同城门票产品历史表
    public static final String TICKET_PRODUCT_H_TC = "competition_ticket_product_h_tc";
    //同城门票商品历史表
    public static final String TICKET_COMMODITY_H_TC = "competition_ticket_commodity_h_tc";
    //同城门票商品价格历史表
    public static final String TICKET_COMMODITY_PRICE_TC = "competition_ticket_commodity_price_tc";
    //携程门票产品历史表
    public static final String TICKET_PRODUCT_H_XC = "competition_ticket_product_h_xc";
    //携程门票商品历史表
    public static final String TICKET_COMMODITY_H_XC = "competition_ticket_commodity_h_xc";
    //携程门票商品价格历史表
    public static final String TICKET_COMMODITY_PRICE_XC = "competition_ticket_commodity_price_xc";
    //途牛门票产品历史表
    public static final String TICKET_PRODUCT_H_TN = "competition_ticket_product_h_tn";
    //途牛门票商品历史表
    public static final String TICKET_COMMODITY_H_TN = "competition_ticket_commodity_h_tn";
    //途牛门票商品价格历史表
    public static final String TICKET_COMMODITY_PRICE_TN = "competition_ticket_commodity_price_tn";
    //去哪儿门票产品历史表
    public static final String TICKET_PRODUCT_H_QNR = "competition_ticket_product_h_qnr";
    //去哪儿票商品历史表
    public static final String TICKET_COMMODITY_H_QNR = "competition_ticket_commodity_h_qnr";
    //去哪儿票商品价格历史表
    public static final String TICKET_COMMODITY_PRICE_QNR = "competition_ticket_commodity_price_qnr";
    //驴妈妈门票产品历史表
    public static final String TICKET_PRODUCT_H_LMM = "competition_ticket_product_h_lmm";
    //驴妈妈商品历史表
    public static final String TICKET_COMMODITY_H_LMM = "competition_ticket_commodity_h_lmm";
    //驴妈妈商品历史表
    public static final String TICKET_COMMODITY_H_TEMPLATE = "competition_ticket_commodity_h_%s";
    //驴妈妈票商品价格历史表
    public static final String TICKET_COMMODITY_PRICE_LMM = "competition_ticket_commodity_price_lmm";
    //美团门票产品历史表
    public static final String TICKET_PRODUCT_H_MT = "competition_ticket_product_h_mt";
    //美团门票商品历史表
    public static final String TICKET_COMMODITY_H_MT = "competition_ticket_commodity_h_mt";
    //美团门票价格历史表
    public static final String TICKET_COMMODITY_PRICE_MT = "competition_ticket_commodity_price_mt";
    //同城门票新增产品表
    public static final String TICKET_NEW_PRODUCT_TC = "competition_ticket_new_product_tc";
    public static final String HOTEL_COMMODITY_H = "competition_hotel_commodity_h";
    public static final String HOTEL_PRODUCT_H = "competition_hotel_product_h";
    public static final String HOTEL_COMMODITY_PRICE_H = "competition_hotel_commodity_price_h";
    public static final String COMMODITY_ROW_KEYS = "CommodityRowKeys";
    public static final int PAGE_HELPER_PAGE_SIZE = 20;

    // 历史数据时间跨度--年度
    public static final String DATA_TIME_YEAR = "Y";

    // 历史数据时间跨度--季度
    public static final String DATA_TIME_QUARTER = "Q";

    // 历史数据时间跨度--月度
    public static final String DATA_TIME_MONTH = "M";

    // 历史数据时间跨度--周
    public static final String DATA_TIME_WEEK = "W";

    public static final int PRODUCT_IS_LINKED = 1;
    public static final int COMMODITY_IS_LINKED = 1;
    public static final int PRODUCT_NOT_LINKED = 0;
    public static final int COMMODITY_NOT_LINKED = 0;
    //判断门票商品是否打包票配置
    public static final String TICKET_COMMODITY_STARDARD_TYPE_CONFIG = "Ticket_Commodity_Stardard_Type_Config";
    //门票产品非抓取字段处理任务配置
    public static final String TICKET_PRODUCT_PARAM_TASK_CONFIG = "Ticket_Product_Param_Task_Config";
    //门票商品非抓取字段处理任务配置
    public static final String TICKET_COMMODITY_PARAM_TASK_CONFIG = "Ticket_Commodity_Param_Task_Config";
    //优秀评分
    public static final double EXCELLENT_SCORES = 100.0;
    //相等评分
    public static final double EQUAL_SCORES = 80.0;
    //劣势评分
    public static final double BAD_SCORES = 60.0;
    //门票商品评分配置
    public static final String TICKET_COMMODITY_GRADE_PARAM_HANDEL = "Ticket_Commodity_Grade_Param_Handel";
    //门票商品评分配置-价格权重
    public static final String TICKET_PRICE_WEIGHT = "Ticket_Price_Weight";
    //门票商品评分配置-退改权重
    public static final String TICKET_REFUND_WEIGHT = "Ticket_Refund_Weight";
    //门票商品评分配置-优惠权重
    public static final String TICKET_PREFERENTIAL_WEIGHT = "Ticket_Preferential_Weight";
    //门票商品分配置-预定时间权重
    public static final String TICKET_BOOKTIME_WEIGHT = "Ticket_Booktime_Weight";
    //门票商品评分配置-生效时间权重
    public static final String TICKET_EFFICIENT_WEIGHT = "Ticket_Efficient_Weight";
    //门票产品评分配置
    public static final String TICKET_PRODUCT_GRADE_PARAM_HANDEL = "Ticket_Product_Grade_Param_Handel";
    //门票产品评分配置-价格权重
    public static final String TICKET_COMMODITYGRADE_WEIGHT = "Ticket_CommodityGrade_Weight";
    //门票产品评分配置-退改权重
    public static final String TICKET_COMMODITYNUM_WEIGHT = "Ticket_CommodityNum_Weight";
    //门票产品评分配置-优惠权重
    public static final String TICKET_PICTURENUM_WEIGHT = "Ticket_PictureNum_Weight";
    //门票产品评分配置-预定时间权重
    public static final String TICKET_SCORE_WEIGHT = "Ticket_Score_Weight";


    //门票产品评分配置-商品退改KEY
    public static final String TICKET_COMMODITY_REFUND_SITUATION = "Ticket_Commodity_Refund_Situation";
    //门票产品评分配置-商品随时退
    public static final String TICKET_REFUND_ANYTIME = "Ticket_Refund_AnyTime";
    //门票产品评分配置-商品不可退
    public static final String TICKET_REFUND_NOWAY = "Ticket_Refund_Noway";
    //门票产品评分配置-商品条件退
    public static final String TICKET_REFUND_SOMETIME = "Ticket_Refund_Sometime";
    public static final String DOLLAR = "¥";
    public static final String RENMINBI = "元";
    //门票产品评分配置-处理优惠力度
    public static final String TICKET_COMMODITY_PREFERENTIAL_SITUATION = "Ticket_Commodity_Preferential_Situation";
    public static final String TICKET_PREFERENTIAL_SITUATION = "Ticket_Preferential_Situation";
    //门票产品评分配置-提前预定
    public static final String TICKET_COMMODITY_BOOKTIME_SITUATION = "Ticket_Commodity_Booktime_Situation";
    public static final String TICKET_BOOKTIME_ANYTIME = "Ticket_Booktime_AnyTime";
    public static final String TICKET_BOOKTIME_NOW = "Ticket_Booktime_Now";
    public static final String TICKET_BOOKTIME_RESERVE = "Ticket_Booktime_Reserve";
    public static final String TICKET_BOOKTIME_BEFOREONEDAY = "Ticket_Booktime_BeforeOneDay";
    //业务类型
    public static final String YWLX = "业务类型";
}
